<!DOCTYPE html>

<html lang="zh-CN">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">

    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">

    <meta content=always name=referrer>

    <link rel="stylesheet" type="text/css" href="__STATIC__/download/css/download.css">

    <script src="__STATIC__/js/jquery-1.8.2.js"></script>

    <style>

        .board {

            width: 100%;

            height: 0px;

            position: absolute;

            background-color: rgba(0, 0, 0, 0.5);

            top: 0px;

            left: 0px;

            z-index: 9;

            overflow: hidden;

        }



        .board1 {

            width: 100%;

            height: 0px;

            position: absolute;

            background: url("__STATIC__/download/img/share.png");

            background-size: 100% 130%;

            top: 0px;

            left: 0px;

            z-index: 9;

            overflow: hidden;

        }



        .shade {

            position: absolute;

            left: 0;

            top: 0;

            width: 100%;

            z-index: 9999;

            overflow: hidden;

        }



        .shade img {

            width: 100%;

        }

    </style>

    <title>iShop</title>

</head>

<body>

<div class="wrap" id="aa">

    <img src="__STATIC__/download/img/main.png" class="main">

    <a href="http://case.longcai.com/index.php?p=show&id=7476&fn_xg=&lanmu=51&fn_quyu=3"><img src="__STATIC__/download/img/more.gif" class="more"></a>

    <div class="content">

        <ul class="title user">

            <li class="line"><img src="__STATIC__/download/img/left.png"></li>

            <li class="down">用户端下载</li>

            <li class="line"><img src="__STATIC__/download/img/right.png"></li>

        </ul>

        <ul class="download user_1">

            <li class="android"><a href="javascript:openApp();" id="openApp">下载 Android 版</a></li>

            <li class="ios"><a href="javascript:openApp();">下载 iPhone 版</a></li>

        </ul>

        <ul class="title seller">

            <li class="line"><img src="__STATIC__/download/img/left.png"></li>

            <li class="down">商家端下载</li>

            <li class="line"><img src="__STATIC__/download/img/right.png"></li>

        </ul>

        <ul class="download seller_1">

            <li class="android"><a href="javascript:openBusiness();">下载 Android 版</a></li>

            <li class="ios"><a href="javascript:openBusiness();">下载 iPhone 版</a></li>

        </ul>

        <img src="__STATIC__/download/img/phone.png" class="show">

    </div>

</div>



<div class="board"></div>

<div class="board1"></div>

<div id="shade" class="shade" style="display: none">

    <img src="__STATIC__/download/img/share.png" alt="">

</div>

</body>

<script>

    $(function () {

        var mm = window.screen.height;

        $("#aa").css('height', mm);

    });



    $(".close").click(

        function () {

            $(".share").css({display: "none"})

        }

    );



    function showdiv(targetid) {



        var target = document.getElementById('shade');



        if (target.style.display == "none") {

            target.style.display = "block";

            document.documentElement.ontouchmove = function () {

                return false;

            };

        } else {

            document.documentElement.ontouchmove = function () {

                return true;

            };

            target.style.display = "none";

        }

    }





    function openApp() {

        var ua = window.navigator.userAgent.toLowerCase();

        if (ua.match(/MicroMessenger/i) == 'micromessenger') {

            showdiv(shade);

        } else {

            var u = navigator.userAgent;

            var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端

            var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端



            // 通过iframe的方式试图打开APP，如果能正常打开，会直接切换到APP，并自动阻止js其他行为

            if (isAndroid) {

                var ifr = document.createElement('iframe');

                ifr.src = 'com.lc.distribution://my.app/openwith';//打开app的协议，有app同事提供

                ifr.style.display = 'none';

                document.body.appendChild(ifr);

                console.log(ifr);

                window.setTimeout(function () {

                    document.body.removeChild(ifr);

                    window.location.href = "http://sj.qq.com/myapp/detail.htm?apkName=com.lc.distribution.project";//打开app下载地址，有app同事提供

                }, 2000)

            } else if (isiOS) {

                var ifr = document.createElement('iframe');

                ifr.src = 'com.longcai.iShop://';//打开app的协议，有app同事提供

                ifr.style.display = 'none';

                document.body.appendChild(ifr);

                console.log(ifr);

                window.setTimeout(function () {

                    document.body.removeChild(ifr);

//                    window.location.href = "https://itunes.apple.com/us/app/ishop用户端/id1254768335?l=zh&ls=1&mt=8";//打开app下载地址，有app同事提供
                    window.location.href = "https://www.pgyer.com/0xKz";//打开app下载地址，有app同事提供

                }, 2000)

            }

        }

    }



    function openBusiness() {

        var ua = window.navigator.userAgent.toLowerCase();

        if (ua.match(/MicroMessenger/i) == 'micromessenger') {

            showdiv(shade);

        } else {

            var u = navigator.userAgent;

            var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端

            var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端



            // 通过iframe的方式试图打开APP，如果能正常打开，会直接切换到APP，并自动阻止js其他行为

            if (isAndroid) {

                var ifr = document.createElement('iframe');

                ifr.src = 'com.lc.distributionshop://my.app/openwith';//打开app的协议，有app同事提供

                ifr.style.display = 'none';

                document.body.appendChild(ifr);

                console.log(ifr);

                window.setTimeout(function () {

                    document.body.removeChild(ifr);

                    window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.lc.distribution.shop";//打开app下载地址，有app同事提供

                }, 2000)

            } else if (isiOS) {

                var ifr = document.createElement('iframe');

                ifr.src = 'com.lc.distribution://my.app/openwith' ;//打开app的协议，有app同事提供

                ifr.style.display = 'none';

                document.body.appendChild(ifr);

                console.log(ifr);
c
                window.setTimeout(function () {

                    document.body.removeChild(ifr);

                    window.location.href = "https://www.pgyer.com/PIbl";//打开app下载地址，有app同事提供 

                }, 2000)

            }

        }

    }



</script>

</html>